package com.uni.service;

import com.uni.entity.CommodityRecord;
import com.uni.entity.User;

import java.util.List;

/**
 * --------------project-------------
 *
 * @Author Unirithe  - Mr.Chao
 * - CSDN:
 * https://blog.csdn.net/Unirithe
 * - GitHub:
 * https://github.com/unirithe
 * @create 2021/12/18 12:19
 * ------------------------------------------
 */
public interface UserService {
    User queryUserByName(String name);
    User queryByPhone(String phone);
    boolean registerUser(User user);
    User checkUser(String name, String password);
    boolean updateUser(User user);
    List<User> queryAllUser();          // 查询所有用户
    User queryUserById(int id);
    List<CommodityRecord> queryHistory(User user);
    boolean deleteUserById(int id);
    boolean deleteHistoryById(int id);
}
